package com.jiang.smartcommunity.ui.activity;

import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;

import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

import com.jiang.smartcommunity.MainActivity;
import com.jiang.smartcommunity.R;
import com.jiang.smartcommunity.tool.Tool;

public class NotifyActivity extends BaseActivity {

    private TextView textView8;
    private ImageView imageView5;
    private CardView cardView2;
    private TextView tv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_notify);
        initView();
        setTitle("通知详情");
        MainActivity.NotifyBean notifyBean = Tool.NOTIFY_BEANS.get(Tool.NOTIFY_BEANS_index);
        textView8.setText(notifyBean.t);
        tv.setText(notifyBean.c);
        imageView5.setImageResource(notifyBean.res);
    }

    private void initView() {
        textView8 = (TextView) findViewById(R.id.textView8);
        imageView5 = (ImageView) findViewById(R.id.imageView5);
        cardView2 = (CardView) findViewById(R.id.cardView2);
        tv = (TextView) findViewById(R.id.tv);
    }
}